package com.hsogoo.collate.domain;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author huangsaigang
 * Created @2019-10-28.
 */
@Data
public class CollateConfig implements Serializable {

    /**任务Id*/
    private Long id;
    /**对账任务名称*/
    private String taskName;
    /**对账任务描述*/
    private String taskDescription;
    /**对账任务组*/
    private String taskGroup;
    /**对账源数据源（本地数据的数据库）*/
    private String dataSourceName;
    /**当前时间前几天*/
    private Long collateDays;
    /**目标服务器*/
    private String targetServer;
    /**对账文件路径*/
    private String targetFilePath;
    /**对账文件类型*/
    private String targetFileType;
    /**对账文件字段分隔符*/
    private String targetFieldSeparator;
    /**字段数组用逗号','分隔，需要和对账文件的列数保持一致*/
    private String targetFieldMapper;
    /**目标关联字段*/
    private String targetKeyword;
    /**目标对账表达式*/
    private String targetExpression;
    /**源数据源表*/
    private String originSql;
    /**源关联字段*/
    private String originKeyword;
    /**源对账表达式*/
    private String originExpression;
    /**任务的执行时间表达式*/
    private String cron;
    /**状态*/
    private String status;

    private Date createTime;
    private Date updateTime;

    public void initTime(){
        this.createTime = new Date();
        this.updateTime = new Date();
    }


}
